public final class Cache {
	private int anInt593;
	private int anInt594;
	private NodeSub aNodeSub_595 = new NodeSub();
	private int anInt596;
	private int anInt597;
	private Class19 aClass19_598;
	private Class9 aClass9_599 = new Class9(true);

	public Cache(int i) {
		anInt596 = i;
		anInt597 = i;
		aClass19_598 = new Class19((byte) 0, 1024);
	}

	public NodeSub method345(long l) {
		NodeSub nodeSub = (NodeSub) aClass19_598.method233(l);
		if (nodeSub != null) {
			aClass9_599.method185(nodeSub);
			anInt594++;
		} else {
			anInt593++;
		}
		return nodeSub;
	}

	public void method346(NodeSub nodeSub, long l) {
		if (anInt597 == 0) {
			NodeSub nodeSub_1_ = aClass9_599.method186();
			nodeSub_1_.method453();
			nodeSub_1_.method454();
			if (nodeSub_1_ == aNodeSub_595) {
				nodeSub_1_ = aClass9_599.method186();
				nodeSub_1_.method453();
				nodeSub_1_.method454();
			}
		} else {
			anInt597--;
		}
		aClass19_598.method234(6, nodeSub, l);
		aClass9_599.method185(nodeSub);
	}

	public void method347() {
		for (;;) {
			NodeSub nodeSub = aClass9_599.method186();
			if (nodeSub == null) {
				break;
			}
			nodeSub.method453();
			nodeSub.method454();
		}
		anInt597 = anInt596;
	}
}
